Welcome to the Downs, Berserker.
I think you're thinking of the movie version of things, but your question is still answerable. What choice did Gandalf have? He knew that someone had to destroy the ring, and to get Frodo to give it up at this point would be very hard. Also, since Bilbo found it, it is sort of fitting that Bilbo's heir destroy it.