Merge "Decrement size of pending write queue by correct amount"