If I'm seeing things correctly, the inner race of that bearing came out. That is not supposed to happen. I would buy new bearings especially given that they feel gritty. It's possible that the inner race separated due to wear.
If you can read the specs on the bearing, you might be able to find them through a bearing warehouse for much less than through a bike shop.