[verb て-form] + ばかりいる [verb て-form] + ばかりいないで
てばかりいる says someone does nothing but one thing, over and over: the て-form of a verb, then ばかり, then いる. It is almost always a complaint, about someone else or about yourself.
ばかり sits between the て-form and いる, and いる carries the tense and politeness: てばかりいた, てばかりいます.
After a noun, ばかり limits the thing: one kind of food, one TV channel. After the て-form, it limits the activity: you do this and nothing else.
てばかりいないで tells someone to stop doing only this and do something else, which follows.
These go beyond the plain statement.
The て-form てばかりいて joins on what that habit leads to, and てばかりいると or てばかりいたら warns where it will lead.