'I gotta' is grammatically incorrect. It is more of a spoken form. If you want to say this with proper grammar, the equivalent would be, 'I have got to' or 'I've got to'. In the spoken form, 'got to' is shortened to 'gotta' and the word 'have' is dropped.