title: fs write returns 0 bytes written
body: <p>So I'm trying to write a buffer to a file. I'm using the <code>fs.write</code> to make it happen, but things are acting up.</p>
  
  <pre><code>fs.write(info.fd, myBuffer, null, null, function(err, written, buffer)     {
      if (err) {console.log(err);}
      console.log(written);
      console.log(buffer);
      fs.close(info.fd, function(err) {
            if (err) {console.log(err);}
      });
  });
  </code></pre>
  
  <p>So, the <code>console.log(written)</code> prints out <code>0</code>, even though the <code>console.log(buffer)</code> prints out <code>&lt;Buffer 68 65 6c 6c 6f 0a 0a 63 68 61 6e 67 65 0a&gt;</code>. Does anyone know what could be going on here? Everything else seems to be working, so I don't really know what is going on. </p>