Here is a link to an interview with Natalie Goldberg, poet, teacher and author. Her book, "Writing Down the Bones" has sold over 1.5 million copies. In this half-hour interview from Future Primitive, one of the main topics she talks about is writing even when you are going through a tough part of your life.
That resonated for me, because years ago while my father was dying of cancer, I wrote a comedy screenplay. It seemed like a weird thing to be doing, but I think it was one of my best scripts and a welcome escape from what was happening in the rest of my life. Even if you can carve out only ten minutes a day, keeping the writing going can be valuable.
(There are a lot of right-brain writing techniques in my books, "Your Writing Coach," published by Nicholas Brealey and available from Amazon and other online and offline retailers.)