I don't think there is any scientific evidence that garlic helps fish fend off ich. It does, however, seem to make food very enticing to fish and causes them to eat. Garlic is simply another possible tank nutrient; in excess it can cause algae especially if the tank is underskimmed.