in reply to perl -pl with next?
perl -ple 'goto LINE if /bala/; s/([^:]+)([^:]+)/$2$1/' file.txt f +ile.txt [download]
-- John.