Start a dream journal. It will help in many ways. :]

From what you described, it sounds like you knew something was wrong with reality, but you didn't know what it exactly was. You nearly realized you were dreaming, so you were nearly lucid.