Trapped-Ion Effect on Charging of a Dust Grain in Plasma, and Shielding Around the Grain