A data storage device, data write method, and program to avoid extra power consumption and suppress a write error that may result from voltage variations. The action types may include system calls to the data storage device. A maintenance operation command receiving unit receives a maintenance operation command requested by the maintenance center. In the closed position, the outside air flow will be substantially isolated from the volume within the enclosure.