update allocated/unallocated quantities on allocate/unallocate