Helper for writting into Node buffers