FIX: Initial write with writeToStage()

Fixes #3695

I'm not sure if checking whether the object has been written yet should be done here or in the writeToStage() function. Seek feedback.