When you borrow funds, the funds and related interest are traced to activities that utilized the funds within 30 days of the borrowing. In your case, all your borrowings on the HELOC were used to acquire rental property. Therefore, the interest paid on the debt could be considered passive activity interest or alternatively you could treat it as home mortgage interest within the $100,000 limitation or a combination thereof.
If treated as passive activity debt, the interest is deductible against the rental income produced by the acquired property. The limitation of $100,000 on home equity debt does not apply, as the debt incurred for personal purposes.
You are responsible for following the IRS tracing guidelines.You must have a provable paper trail as to where the money goes and expense the interest against the income producing expenditures.
Allocation of Interest
http://www.irs.gov/publications/p535/ch04.html#en_US_2016_publink1000243081