What's your jurisdiction?
In all likelihood, he can probably simply return the marriage certificate un-certified by the JP, or just rip it up.
I'm not sure what you mean by "legally write to the girl", but he doesn't need to do that. It would undoubtedly be a good thing to do so she's not...