code: function writeBuffer() {
        fs.write(fd, buff, 0, buff.length, 0, function (error) {
          fs.close(fd);
  
          callback(error);
        });
      }
docs: Write the buffer to the open file stream once both prerequisites are met.