Added missing write signature

This is also consistent with the doc comments already there.
Merge pull request #1850 from borisyankov/def/gruntjs

Added missing write signature