But if a fungal ball forms inside your lung, it can cause bleeding. And your doctor may do a lobectomy. Sometimes, an infection (such as a bacterial one) can form an abscess — a pocket of pus.