Many children freeze when faced with a blank page. Writing feels high-stakes, especially if they're been corrected heavily on spelling and grammar.
The first step is separating generation (getting ideas out) from editing (fixing spelling and grammar). When children feel safe to generate, confidence grows.