Growth of Intermediate-Mass Black Holes in the Hierarchical Formation of Small Spiral Galaxies in the High-z Universe