Why am I gaining weight even when working out?

I just turned 19 a week ago and I’m 5’10 or 5’11″. Around the end of last year I weighed about 160-165. I started lifting weights and exercising seriously about 2 weeks ago. Now I weigh about 183 last time I checked. I regularly run on the track and do upper/lower body workouts. I’ve also been consuming much more whey protein to build muscle and have been eating healthy. I already had a large and well formed pectoral muscles before starting lifting again. I notice an increase in strength, although I don’t notice such a dramatic increase in muscle mass other than being more defined. I never eat junk food anymore like chocolate, ice cream, candy, pizza, etc. Sometimes I only have time to eat one real meal in the evening and a light breakfast. Therefore, I don’t see how my diet would be increasing my weight. Apart from lifting weights and running, I do abdominal workouts almost daily to hopefully get a six pack one day. I’m not that close yet, but I notice my top ab muscles when flexed.