Venting to the attic is fine. Do NOT tie in to the exhaust for the hot water heater. You would be adding back pressure to that system, potentially causing the exhaust to flow the wrong direction.