if its fungus, (looks like cotton wool ) it's not infectious .. its just an infection most likely your fish has injured itself and this is the result.. just change some water, get conditions right and add some salt, and melafix if you can get some..
Should be fine..