While the grappling rules don't even come close to mentioning it on way or the other (they only preclude attacking with two weapons - which is in no way the same thing), the rules from the Monster Manual are a bit more explicit:
And the PHB backs this up:
So, by the rules, you get to attack...