Bilbo was able to take the ring because Gollum had taken it off. I've always wondered: If you had the ring, and were accustomed to wearing it, why would you ever take it off anyway?