ANSWER:
What you have been doing is totally prohibited and shameful. This money is considered as the grandfather’s wealth and must be distributed among his heirs according to sharia laws.
You must sincerely repent to Allah while showing deep remorse for stealing and dishonoring the trust and amanah and return it all at once even if you have to borrow from others.