ばかりしていた

did nothing but

→ ばかり
phrase Rare #28,952
did nothing but ばかり emphasizes that someone did one thing repeatedly or to the exclusion of other things; していた describes this as ongoing or habitual in the past.
JA: 彼は昨日、ゲームばかりしていた。
EN: He did nothing but play games yesterday.

彼らは絶えずけんかばかりしていた。

They were constantly fighting.

彼女はずっと質問ばかりしていた。

She kept asking questions the whole time.

ジョンはいつもまちがいばかりしていた。

John was always making mistakes.

あのバカは 友人の心配ばかりしていた

That idiot did nothing but worry about his friend.

— きっと、うまくいく (2009)

彼女はいつも僕のあらさがしばかりしていたよ。

She was always picking faults with me.

彼女は一日中読書ばかりしていた。

She did nothing but read all day.