test: improve FileHandle.prototype.write
coverage
#42541
Merged
FileHandle.prototype.write
coverage
#42541