~ているばかり means "only to do it and not to do anything than that", as same as "present form of verb/adjective + ばかり". It's close to だけ "only/just".
e.g.
その迷子は泣いているばかりで(= 泣くばかりで)、名前も話せなかった。
~てばかりいる can be used for custom, "often to do it".
この子は泣いてばかりいる(= いつも泣いている)。
ばかり is a bit tricky. There are some other usages ~たばかり "has just finished", ~するばかり "to be about to do", "approximately", and so on.
e.g.
たったいま日本に着いたばかりだ。
準備も終わって、あとは試験を受けるばかりだ。
荷物が届くのにあと2日ばかりかかる。