As a marathon-runner, I know what you're talking about. :-)
What it's often left unexplained is that writers who write everyday develop strategies like the following one: carry a notepad with you and jot down all those random thoughts that assail us every day. They'll come in handy after. It's just a case of re-arranging them.