Oh, I should add: To fix this manually and certainly at least once after the 1.1.1 update, there is a rebuilder that can recalculate all of these for you.
See Admin CP > Applications > Gallery Rebuilds > Rebuild XenForo Media Gallery User Media Quota