So you fell asleep thinking about making an entry, then you actually did it in your dream?

That's a technique you can use to have LDs, it's called a DIELD, or a VILD (depending on if you were awake for a while).