Boundedness for a class of fractional integrals with a rough kernel related to block spaces