you need to unlock your phone first, and then write the ROM.
EDIT: Tplane27's post and my post as well have received barely any thanks. I see that 18 people have downloaded it.
DON'T FORGET TO THANK TPLANE37 OR MYSELF (preferrably him, I'm simply mirroring and linking, but it would be appreciated
)