Since the Giant Ape attacks with a Fist, I think it is reasonable to rule that a Giant Ape could attack another creature while holding one with a grapple. However, I recommend not allowing the Giant Ape to use their Rock attack since they would likely throw the rock with both hands.