new york state part year ira contribution allocation

I am filing a New York State part year resident return, and want to confirm how to allocate my IRA contribution in the Allocation Worksheet. I earned all of my W2 income while a NY resident, and other income from investments during my non-resident period. I have entered $6k in Column A (Federal) in row 17J, and think I should also enter $6k in the Column B (NYS Resident Period), and keep Columns C & D (nonresident) blank.  Please let me know if you think this is entered correctly, thanks!