In traditional battery energy storage systems (BESS), batteries are usually connected in a simple series or parallel form, and separate converters and balancing modules are typically used for energy exchange between the battery and external sources, as well as for balancing energy between batteries. This paper proposes an integrated battery energy storage system (IBESS) with reconfigurable batteries and DC/DC converters, resulting in a more compact structure. The IBESS can reconfigure the connection of energy storage batteries based on the battery's status and external demand. The DC/DC converters can operate in different modes such as boost, buck, or buck-boost converters. The IBESS has five working modes: discharging mode, balancing mode, battery discharging and balancing mode, constant current and constant voltage (CCCV) charging mode and backup mode. To verify the feasibility of the proposed energy storage system, a model with four battery modules was built using MATLAB/SIMULINK, and the operation of all working modes was demonstrated. The simulation results verified the system's performance and reliability, demonstrating its flexibility and efficiency in different operating modes.