'May be called by L{H2Stream} objects to write response data to a given
stream. Writes a single data frame.
@param streamID: The ID of the stream to write the data to.
@type streamID: L{int}
@param data: The data chunk to write to the stream.
@type data: L{bytes}'

def writeDataToStream(self, streamID, data):

    self._outboundStreamQueues[streamID].append(data)
    if (self.conn.local_flow_control_window(streamID) > 0):
        self.priority.unblock(streamID)
        if (self._sendingDeferred is not None):
            d = self._sendingDeferred
            self._sendingDeferred = None
            d.callback(streamID)
    if (self.remainingOutboundWindow(streamID) <= 0):
        self.streams[streamID].flowControlBlocked()
