Defeat all the Team Rocket members in the Goldenrod Tower, then travel to Mahogany Town.
Once you've done that, the guy blocking your path will be gone.