calculate wastage due to unused memory at the end of each block