Using API csv Import GU"I extension for Pledges
If I'm understanding you correctly, you are importing pledges and the contributions relative to each pledge in the same import.  You have to import pledges and their connected contributions separately.  You must also add a couple of columns in order to have things connect correctly.

See https://civicrm.stackexchange.com/a/6380/105