This is frequently asked question in SAP QM and you can find n number of threads on the topic. You should implement SAP note 175842 for this. In turn you will reverse all the stock postings those were made through QA32. Thus you can bring back the material to QI with reference to inspection lot.
Anand