Fix `write` parameter name inconsistency

Use `moduleName` consistently in `write` docs