write data to the file

        :param data:
            the data to write into the file, at the descriptor's current
            position
        :type data: str

def write(self, data):
        """write data to the file

        :param data:
            the data to write into the file, at the descriptor's current
            position
        :type data: str
        """
        while data:
            went = self._write_chunk(data)
            if went is None:
                continue
            data = data[went:]