There is a difference between exorcising your feelings through writing, and writing negativity into your life (ie, putting energy into prolonging your misery). It is much better for your mental health to focus on something positive.