The two-word phrase a while is getting pushed aside by awhile. But awhile should only be used to mean "for a while." It's a distinction worth preserving: It took a while, but I was convinced after thinking it over awhile.
Always use a while with prepositions: After a while, she arrived.