We studied the dynamic magnetization behavior of a hard-disk-drive (HDD) write head by using nano-beam x-ray magnetic circular dichroism (XMCD). The write head was operated by applying a square-wave write current with a frequency of 211.9 MHz to the coil of the write head, which was in synchronization with the fivefold frequency of the x-ray pulses. Snapshot images of the magnetization on the air-bearing surface of the write head were obtained with spatial and time resolutions of 100 nm and 50 ps, respectively, and temporal changes in the magnetization of the main pole and the shield were observed. When a square-wave write current with a transition time of 0.2 ns was applied, the magnetization reversal of the main pole was completed in 0.7 ns, and this reversal time was determined by the dynamic property of the write head. During the main pole reversal, the shield area showed spatially non-uniform magnetization patterns, and its response was slower than that of the main pole. These results show that the XMCD measurement setup developed in this study is a powerful tool for understanding the dynamic behavior of an HDD write head and contributes to the development of higher capacity HDDs.