Effect of ion-neutral collisions on the charging of a dust particle