Before we get into the substance of your question, let me just remark briefly that "gonna" is very casual and the subjunctive is comparatively very formal. Having both in the same sentence is a bit inconsistent, to put it mildly. Your sentence contains an indirect question (also called 'embedded question'): Was I going to be late?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.