sounds like a faultering SP or sleep paralysis. As you awaken, you start to lose your SP and your body regains the ability to move again. This idea is what also causes sleep walking (when you dont reach full SP). The difference is that you were aware of yourself enough to realize your were in fact actually waking up.
So, in a simple means of saying it, what happened is your body awoke before your mind. Hope this makes sense.