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