A Cognitive Writing Perspective for Constrained Long-Form Text Generation