def METHOD_NAME(self, offset: int, data: bytes) -> None:
    self.bytesReceived += len(data)
    if self.bytesReceivedLimit and self.bytesReceived > self.bytesReceivedLimit:
        raise filetransfer.SFTPError(filetransfer.FX_FAILURE, "Quota exceeded")
    self.sftpserver.fs.lseek(self.fd, offset, os.SEEK_SET)
    self.sftpserver.fs.write(self.fd, data)