Formation of intermediate-mass black holes as primordial black holes in the inflationary cosmology with running spectral index