fix: Call ._write with correct arguments