During the shade of the revanent you activate the alter (it's a container like a chest) and place the grand soul gem inside than cast a soul trap spell on the altar then retrieve your new black soul gem.
I've done it before, though, and it never worked for me :/
Of course, I don't remember if it was empty, or had some soul in them *shrugs*