test: fs.write() if 3rd argument is a callback, not offset
https://github.com/nodejs/node/pull/16827 and https://github.com/nodejs/node/pull/16822 resulted in some serious merge conflicts, so I decided to open a fresh PR for this with everything resolved.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines