For ENG-5345, also account for bytes released from current write buffer