Fix `write` parameter name inconsistency

Use `moduleName` consistently in `write` docs
Merge pull request #1162 from duncanbeevers/patch-1

Fix `write` parameter name inconsistency