code: def write(self, fd, bytes):
          
          args = {
              'fd': fd,
              'block': base64.encodebytes(bytes).decode(),
          }
  
          return self._client.json('filesystem.write', args)
docs: Write a block of bytes to an open file descriptor (that is open with one of the writing modes
  
          :param fd: file descriptor
          :param bytes: bytes block to write
          :return:
  
          :note: don't overkill the node with large byte chunks, also for large file upload check the upload method.