I sometimes have to write for a while before I figure it out, pretend that I know what I'm doing, sort of like ad-libbing on stage until you remember your line - you hope you sound convincing to the audience. The key is to have enough material, enough threads, so that there's something that can be satisfyingly drawn to a conclusion.
