It's really very common to lose track of time while writing. You must have been in the flow alright. A great thing to be in. That's why I love writing as much, sometimes it's everything and all and you are absorbed in this realm of creation. Super addictive too.