File closing: takes into account the pending r/w req.