actually it's easier if you lie still and try to recall all the details then write them down afterward. at least that worked for me.
just write in morning everything what you have on mind and read it..you will remember :)
What I do is when I wake up, I keep my eyes close and I remember the dream better. I just remember the dream in my head and write it down :D
Hope it's a good one :)