The DTC P0505 confirms the earlier diagnostic done at the dealership. Replacing an ECM is expensive. The driver for the IACV stepper motor is inside the ECM. If the IACV is failing, a short circuit in the assembly or harness will 'fry' the ECU. An open circuit should not affect the ECU.
For best OEM part pricing, NICO sponsor IoS (Infiniti of Scottsdale) - infinitipartsUSA.com a.k.a. everythingnissan.com is your best bet, with 25% off MSRP. They have an additional 5% of this month (Code "December5").
You can also try eBay or other online stores.
Below is the link to the 2001 Maxima FSM (Factory Servie manual). Diagnostic for DTC P0505 starts on page EC-429 (Engine Control System chapter)
http://www.nicoclub.com/FSM/maxima/2001/EC.pdf