Finite groups whose noncentral class sizes have the same p-part for some prime p