The first stage of the writing process involves prewriting which includes brainstorming. Prewriting activities help students come up with ideas about what and how to write.
Kindergarten students commonly engage in drawing, scribbling, and invented spelling as brainstorming/prewriting techniques. It’s is a legitimate stage of writing development for them so do not attempt to suppress or alter this behavior. They will grow out of it.