Hashing functions don't guarantee that buckets will contain ONLY ONE item. Collisions (duplicate hashcodes) can, and will occur, and will result in two or more entries being stored in a bucket.. This is by design.
I can't tell fron your post what you need. Maybe these references will help: http://www.google.com/search?q=how+hashtables+work