That was Saruman the white. Gandalf was under him. Then, Gandalf fell into shadow and killed the Balrog. That was such an important and historical event that Gandalf went from Gandalf the Grey to Gandalf the White, becoming as powerful as Saruman. But Since Gandalf is unselfish with his powers, it makes him more powerful than Saruman as long as Middle Earth doesn't fall into Darkness.