[PATCH openEuler-1.0-LTS 3/6] quota: Replace all block number checking with helper function