Virizion is not in Pokémon Black. It is a version-exclusive Legendary Pokémon available only in Pokémon White (and White 2).
Pokémon Black players instead encounter Terrakion (the Rock/Fighting member of the Swords of Justice trio) at the same location under the same conditions. To obtain Virizion in Black, you must trade from White, White 2, or later games via Pokémon Home.
No rocks block Virizion in either version—the "blocking" premise likely confuses this with other in-game obstacles.