Changed 'rewrite' to 'write'.

The words were not being distinguished in a systematic way.