I think I get you.

You hadn't thought that you'd woken up and then wrote wrote in your journal..
you're saying that an action that you took in your dream was writing in your journal.