TORONTO (Reuters) - Research in Motion booked a huge charge to write down inventories of its unloved PlayBook tablet on Friday, capping a dismal year with a steep profit warning that sent its shares tumbling almost 10 percent.